package com.usian.tu.controller;

import com.apis.login.AdwemedialoginApi;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmUserDto;
import com.usian.tu.service.WemediaLoginservice;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("wemediatu/api/vi/wemediatu")
public class Tucontroller  implements AdwemedialoginApi {

    @Autowired
    private WemediaLoginservice wemediaLoginservice;


    @PostMapping("login")
    @Override
    public ResponseResult login(@RequestBody WmUserDto dto) {
        return wemediaLoginservice.login(dto);
    }

    @GetMapping("ceshi")
    @Override
    public String ceshi() {
        return "11";
    }
}
